<?php
/**
 * Created by PhpStorm.
 * User: 徐州
 * Date: 2017/5/24
 * Time: 15:38
 */

namespace App\Models\Resource;

class ResourceService
{
    private $resourceRepository;

    public function __construct(\App\Contracts\Repositories\ResourceRepository $resourceRepository)
    {
        $this->resourceRepository = $resourceRepository;
    }

    public function upadte($candidateId, $resourceID, $resourceUrl)
    {
        return $this->resourceRepository->update($candidateId, $resourceID, $resourceUrl);
    }

    public function create($resource)
    {
        return $this->resourceRepository->create($resource);
    }
}
